
const fs = require('fs-extra');
const path = require('path');
export const  deleteGitFolder=(folderPath:string)=> {
    const gitFolderPath = path.join(folderPath, '.git');

    // 检查路径是否存在
    // if (fs.existsSync(gitFolderPath)) {
        fs.remove(gitFolderPath)
        .then(() => {
          console.log('.git folder deleted successfully.');
        })
        .catch((err:string) => {
          console.error('Error:', err);
        });
    // } else {
    //     console.log('.git folder not found.');
    // }
}